package com.shan.design.visitor;

/**
 * description
 * 部门类：抽象访问者类
 *
 * @author shanzheng <br/>
 * @date 14:41 2018/11/29.<br/>
 * Modified By <br/>
 */
public abstract class Department {
    //声明一组重载的访问方法，用于访问不同类型的具体元素

    /**
     * Description 对全职员工的访问
     *
     * @param employee 被访问元素抽象类
     * @return void
     * @author shanzheng
     * date  2018/11/29
     */
    abstract void visit(FulltimeEmployee employee);

    /**
     * Description 对临时员工的访问
     *
     * @param employee 被访问元素抽象类
     * @return void
     * @author shanzheng
     * date  2018/11/29
     */
    abstract void visit(ParttimeEmployee employee);
}
